package com.bidcms.util;

import javax.servlet.http.HttpSession;

import org.springframework.util.StringUtils;

public class VerifyCodeHelper {

	
	public static final String SESSION_VCODE = "VCODE";
	public static boolean check(HttpSession sess,String code){
		if(StringUtils.isEmpty(code))
			return false;
		return sess.getAttribute(SESSION_VCODE).equals(code);
	}
}
